﻿using System;
using System.Reflection;
using System.Xml.Serialization;
using System.Collections.Generic;

namespace HyperCrunch.Druid.Sample
{

    [Serializable()]
    public class Product
    {

        [XmlAttribute]
        public string Id
        {
            get;
            set;
        }

        [XmlAttribute]
        public string Name
        {
            get;
            set;
        }

        [XmlAttribute]
        public string Image
        {
            get;
            set;
        }

        [XmlAttribute]
        public int Inventory
        {
            get;
            set;
        }

        [XmlAttribute]
        public Single Rating
        {
            get;
            set;
        }

        [XmlAttribute]
        public string BuyUrl
        {
            get;
            set;
        }

        [XmlAttribute]
        public string WikiaUrl
        {
            get;
            set;
        }

        [XmlAttribute]
        public string Description
        {
            get;
            set;
        }

    }

    [Serializable()]
    public class ProductCollection : List<Product>
    {

    }

}

